package ua.kpi.javatraining.university;

/**
 * @author Vasily Yatsenko
 */
public class Contacts {
    private String contactPhone;
    private String address;

    public Contacts(String contactPhone, String address) {
        this.contactPhone = contactPhone;
        this.address = address;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public String getAddress() {
        return address;
    }

    public String toString() {
        StringBuilder builder = new StringBuilder("Phone: ");

        builder.append(getContactPhone());
        builder.append(" Address: ");
        builder.append(getAddress());
        return builder.toString();
    }
}
